package com.haiyou.dc.api.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * 电影
 *
 * @author Administrator
 * @date 2020-01-04 18:37:46
 */
@ApiModel(value = "电影")
@Data
@Accessors(chain = true)
@Table(name = "movie")
public class Movie implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "id", name = "id")
    private Integer id;

    /**
     * movie_title
     */
    @Column(name = "movie_title")
    @ApiModelProperty(value = "movie_title", name = "movieTitle")
    @NotNull(message = "movie_title不能为空")
    private String movieTitle;

    /**
     * movie_introduction
     */
    @Column(name = "movie_introduction")
    @ApiModelProperty(value = "movie_introduction", name = "movieIntroduction")
    private String movieIntroduction;

    /**
     * movie_rating
     */
    @Column(name = "movie_rating")
    @ApiModelProperty(value = "movie_rating", name = "movieRating")
    private Float movieRating;

    /**
     * movie_release_date
     */
    @Column(name = "movie_release_date")
    @ApiModelProperty(value = "movie_release_date", name = "movieReleaseDate")
    private String movieReleaseDate;

}
